package com.icongyou.enterprise.talent_analysis.entity.template;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Positive;
import lombok.Data;

import java.util.List;

@Data
public class TemplateDimension {
    @NotBlank(message = "维度 code 不能为空")
    private String code;

    @NotBlank(message = "维度名称不能为空")
    private String name;

    private String description;

    @Positive(message = "维度权重需为正数")
    private Double weight;

    @Valid
    private List<TemplateMetricMapping> metrics;

    /**
     * AI生成的文本分析规则
     * 用于分析教师评语、AI评语、任务描述等文本数据
     */
    private String textAnalysisRules;

    /**
     * AI生成的评分逻辑说明
     * 描述如何将数值指标和文本分析结合成最终分数
     */
    private String scoringLogic;
}
